<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="no-cache"/>
    <meta http-equiv="Expires" content="-1"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <title>产品驳回原因</title>

    <script type="text/javascript">
      Ext.onReady(function(){
              Ext.QuickTips.init();
              var productId = <%= params[:id] %>;
              var rejectProductForm=new Ext.form.FormPanel({
                    width:600,
                    //labelAlign: 'top',
                    buttonAlign:'center',
                    autoHeight:true,
                    bodyStyle: 'padding:5px',
                    labelWidth:100,
                    waitMsgTarget: true,
                    frame: true,
                    reader:new Ext.data.JsonReader({
                       },[
                       {name:'id'},
                       {name:'reject_reason'}
                      ]
                    ),
                    items:[{
                          layout:'column',
                          items:[{
                              columnWidth:1,
                              layout:'form',
                              labelAlign: 'top',
                              items:[{
                                  xtype:'textarea',
                                  fieldLabel: '产品驳回原因',
                                  name: 'reject_reason',
                                  readOnly:true,
                                  height:130,
                                  anchor: '95%'
                              }]
                          }]
                     }],
                     buttons:[{
                        text:'确定',
                        disabled:true,
                        handler: function(){
                        }
                    },{
                        text:'取消',
                        handler:function(){
                            rejectProductWin.destroy();
                        }
                    }]
                });
          rejectProductForm.form.load({
               url: '/product/getRejectReasonOfProduct?id=' + productId,
               success: function(form, action){
               },
               failure: function(form, action){
                  Ext.MessageBox.alert('提示信息', '信息加载失败');
               }
          });
          rejectProductForm.render('reject_product_form');
      })
    </script>
  </head>
  <body>
     <div id="reject_product_form"></div>
  </body>
</html>
